package com.zenith.gateway.feign;

import com.zenith.common.result.Result;
import com.zenith.gateway.po.dto.PermissionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "zenith-user-service", path = "/api/user/permission", contextId = "gateway-permission-client")
public interface PermissionFeignClient {
    
    @GetMapping("/selectPermissionsByRole")
    Result<List<PermissionDTO>> selectPermissionsByRole(@RequestParam("role") String role);
}